<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/3
 * Time: 19:20
 */

namespace app\common\validate;


use think\Validate;

class Admin extends Validate
{
    protected  $rule =[
        'username|管理员账户' => 'require|unique:admin',
        'nickname|名字' => 'require',
        'telephone|手机号' =>'require',
        'item|权限' => 'require'

    ];
    public function sceneAdd(){
        return $this->only(['username','nickname']);
    }

}